package NicholasDatabase;

import java.sql.Connection;
import java.sql.PreparedStatement;

public class SQL {

    private DatabaseInterface dbi;
    protected Connection conn;
    protected PreparedStatement stat;

    public SQL() {
        try {
            dbi = DatabaseInterface.getDBI();
            conn = dbi.getConnection();
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
    }

    public void closeQuery() {
        try {
            stat.close();
            dbi.closeConnection();
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
    }
}
